package com.bicon.base.data.pojo.botu;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("JOB_EXECUTION_LOG")
public class JobExecutionLog extends Model<JobExecutionLog> {

    private static final long serialVersionUID = 1L;

    private String id;
    @TableField("job_name")
    private String jobName;
    @TableField("task_id")
    private String taskId;
    private String hostname;
    private String ip;
    @TableField("sharding_item")
    private Integer shardingItem;
    @TableField("execution_source")
    private String executionSource;
    @TableField("failure_cause")
    private String failureCause;
    @TableField("is_success")
    private Integer isSuccess;
    @TableField("start_time")
    private Date startTime;
    @TableField("complete_time")
    private Date completeTime;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getHostname() {
        return hostname;
    }

    public void setHostname(String hostname) {
        this.hostname = hostname;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getShardingItem() {
        return shardingItem;
    }

    public void setShardingItem(Integer shardingItem) {
        this.shardingItem = shardingItem;
    }

    public String getExecutionSource() {
        return executionSource;
    }

    public void setExecutionSource(String executionSource) {
        this.executionSource = executionSource;
    }

    public String getFailureCause() {
        return failureCause;
    }

    public void setFailureCause(String failureCause) {
        this.failureCause = failureCause;
    }

    public Integer getIsSuccess() {
        return isSuccess;
    }

    public void setIsSuccess(Integer isSuccess) {
        this.isSuccess = isSuccess;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getCompleteTime() {
        return completeTime;
    }

    public void setCompleteTime(Date completeTime) {
        this.completeTime = completeTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "JobExecutionLog{" +
        "id=" + id +
        ", jobName=" + jobName +
        ", taskId=" + taskId +
        ", hostname=" + hostname +
        ", ip=" + ip +
        ", shardingItem=" + shardingItem +
        ", executionSource=" + executionSource +
        ", failureCause=" + failureCause +
        ", isSuccess=" + isSuccess +
        ", startTime=" + startTime +
        ", completeTime=" + completeTime +
        "}";
    }
}
